using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Configuration;
using System.Globalization;
using System.Web.Configuration;

namespace DTN.Core
{
    public class SessionManager
    {
        public static void SetAdminId(int id)
        {
            HttpContext context = HttpContext.Current;
            context.Session["AdminID"] = id;
        }
        public static void SetStatus(int iStatus)
        {
            HttpContext context = HttpContext.Current;
            context.Session["Status"] = iStatus;
        }
        public static void SetAdminName(string name)
        {
            HttpContext context = HttpContext.Current;
            context.Session["AdminName"] = name;
        }
        public static void SetRoleName(string name)
        {
            HttpContext context = HttpContext.Current;
            context.Session["RoleName"] = name;
        }
        public static void SetRoleID(int id)
        {
            HttpContext context = HttpContext.Current;
            context.Session["RoleID"] = id;
        }
        public static void DeleteRoleName()
        {
            HttpContext context = HttpContext.Current;
            context.Session["RoleName"] = null;
        }
        public static void DeleteRoleID()
        {
            HttpContext context = HttpContext.Current;
            context.Session["RoleID"] = null;
        }
        public static void DeleteAdminId()
        {
            HttpContext context = HttpContext.Current;
            context.Session["AdminID"] = null;
        }
        public static void DeleteAdminName()
        {
            HttpContext context = HttpContext.Current;
            context.Session["AdminName"] = null;
        }
        public static void DeleteStatus()
        {
            HttpContext context = HttpContext.Current;
            context.Session["Status"] = null;
        }
    }
}
